package com.emall.search.vo;

import com.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.List;

/**
 * @author YuanShijia
 * @ClassName SearchResponse.java
 * @Description
 * @createTime 2020年05月17日 16:15:00
 */
@Data
public class SearchResult {
    // 返回页面信息
    private List<SkuEsModel> products;

    private Integer pageNum;

    private Long total;

    private Integer totalPages;

    // 当前查询的结果，所有品牌
    private List<BrandVo> brands;
    // 涉及的所有分类
    private List<CatalogVo> catalogs;
    // 当前查询结果， 所有属性
    private List<AttrVo> attrs;

    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }

    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
